<template>
  <div id="app">
    <keep-alive v-if="$route.meta.keepAlive">
      <transition name="fold-top">
        <router-view></router-view>
      </transition>
    </keep-alive>

    <router-view v-if="!$route.meta.keepAlive"></router-view>

    <!-- <router-view /> -->
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  created: function() {}
};
</script>

<style lang="less">
// 1px解決方案
@import "~vux/src/styles/1px.less";

@range-bar-default-color :#000;

// 修改loading toast樣式
.vux-loading-no-text .weui-toast {
  min-height: 2.5em;
  width: 2.5em;
}
.weui-toast {
  min-height: 3em;
  width: 3em;
}

.weui-dialog__hd {
  padding: unset;
}

@swiper-indicator-active-color: #000;
</style>



<style lang="scss" scoped>
//跳转动画
.fold-top-enter-active {
  animation: fold-top-in;
  animation-duration: 0.6s;
}

@keyframes fold-top-in {
  0% {
    transform: translate3d(0, 100%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fold-top-out {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -100%, 0);
  }
}
</style>

